Skip to content

Conversation

@auduchinok
Copy link
Member

Adds recovery to various cases where an error would break subsequent analysis.

In the following example f was not added to the environment, breaking analysis of its usages:

let f (x: unit) =
    x + 1

f ()
Screenshot 2025-10-28 at 14 50 44

In this example the f argument is not analyzed at all:

let f<'T when 'T : struct> (x: 'T) =
    x

let i = f<obj> Unchecked.defaultof<obj>
Screenshot 2025-10-28 at 14 52 32

@github-actions
Copy link
Contributor

github-actions bot commented Oct 28, 2025

❗ Release notes required


✅ Found changes and release notes in following paths:

Change path Release notes path Description
src/Compiler docs/release-notes/.FSharp.Compiler.Service/11.0.0.md

@auduchinok auduchinok force-pushed the tc-recover-contraints branch from 6bff61d to 0aef154 Compare October 28, 2025 14:35
@auduchinok auduchinok closed this Oct 29, 2025
@auduchinok auduchinok reopened this Oct 29, 2025
@auduchinok auduchinok closed this Oct 29, 2025
@auduchinok auduchinok reopened this Oct 29, 2025
@auduchinok auduchinok closed this Oct 29, 2025
@auduchinok auduchinok reopened this Oct 29, 2025
@auduchinok auduchinok force-pushed the tc-recover-contraints branch 7 times, most recently from 4b5f7bd to be79b41 Compare October 31, 2025 14:20
@auduchinok auduchinok force-pushed the tc-recover-contraints branch from be79b41 to 4303465 Compare October 31, 2025 17:36
@auduchinok
Copy link
Member Author

This is ready.

@auduchinok
Copy link
Member Author

Update: I found an issue in this one, please don't merge it yet.

Copy link
Member

@T-Gro T-Gro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To prevent merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants